package ClassData;

import ClassData.Visitor.IVisitor;
import ClassData.Visitor.IVisitorElement;

public class ConstantPoolString_Info  extends ConstantPoolInfo implements IVisitorElement {

	short name_index;
	
	/**
	  *  
	  * 
	  * @param nameIndex index of this string in constant pool
	  * 
	  */		
	public ConstantPoolString_Info(short nameIndex) {
		name_index=nameIndex;
	}
	
	public short getNameIndex() {
		return(name_index);	
	}

	/**
	 * returns type of this constant pool entry
	 * 
	 */	
	public int getType() {
		return(CONSTANT_String);
	}

	@Override
	public void receive_Visitor(IVisitor visitor) {
		visitor.visit_ConstantPoolString_Info(this);
	}
	
}